﻿@model KinoDB.Models.Film

@{
    ViewBag.Title = "Create Movie";
}

<h2>CreateMovie</h2>

@using (Html.BeginForm()) 
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        <h4>Film</h4>
        <hr />
        @Html.ValidationSummary(true)

        <div class="form-group">
            @Html.LabelFor(model => model.Titel, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Titel)
                @Html.ValidationMessageFor(model => model.Titel)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Länge, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Länge)
                @Html.ValidationMessageFor(model => model.Länge)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.FSK, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.FSK)
                @Html.ValidationMessageFor(model => model.FSK)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Beschreibung, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Beschreibung)
                @Html.ValidationMessageFor(model => model.Beschreibung)
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Create" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "MovieManagement")
</div>
